﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A77 RID: 2679
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyGetInfoScRsp : IMessage<LobbyGetInfoScRsp>, IMessage, IEquatable<LobbyGetInfoScRsp>, IDeepCloneable<LobbyGetInfoScRsp>, IBufferMessage
	{
		// Token: 0x170021D4 RID: 8660
		// (get) Token: 0x060077E1 RID: 30689 RVA: 0x001405BF File Offset: 0x0013E7BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyGetInfoScRsp> Parser
		{
			get
			{
				return LobbyGetInfoScRsp._parser;
			}
		}

		// Token: 0x170021D5 RID: 8661
		// (get) Token: 0x060077E2 RID: 30690 RVA: 0x001405C6 File Offset: 0x0013E7C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyGetInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021D6 RID: 8662
		// (get) Token: 0x060077E3 RID: 30691 RVA: 0x001405D8 File Offset: 0x0013E7D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyGetInfoScRsp.Descriptor;
			}
		}

		// Token: 0x060077E4 RID: 30692 RVA: 0x001405DF File Offset: 0x0013E7DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyGetInfoScRsp()
		{
		}

		// Token: 0x060077E5 RID: 30693 RVA: 0x001405F4 File Offset: 0x0013E7F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyGetInfoScRsp(LobbyGetInfoScRsp other) : this()
		{
			this.fightGameMode_ = other.fightGameMode_;
			this.aGFNBILMNFC_ = other.aGFNBILMNFC_;
			this.roomId_ = other.roomId_;
			this.memberInfo_ = other.memberInfo_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060077E6 RID: 30694 RVA: 0x00140659 File Offset: 0x0013E859
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyGetInfoScRsp Clone()
		{
			return new LobbyGetInfoScRsp(this);
		}

		// Token: 0x170021D7 RID: 8663
		// (get) Token: 0x060077E7 RID: 30695 RVA: 0x00140661 File Offset: 0x0013E861
		// (set) Token: 0x060077E8 RID: 30696 RVA: 0x00140669 File Offset: 0x0013E869
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightGameMode FightGameMode
		{
			get
			{
				return this.fightGameMode_;
			}
			set
			{
				this.fightGameMode_ = value;
			}
		}

		// Token: 0x170021D8 RID: 8664
		// (get) Token: 0x060077E9 RID: 30697 RVA: 0x00140672 File Offset: 0x0013E872
		// (set) Token: 0x060077EA RID: 30698 RVA: 0x0014067A File Offset: 0x0013E87A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong AGFNBILMNFC
		{
			get
			{
				return this.aGFNBILMNFC_;
			}
			set
			{
				this.aGFNBILMNFC_ = value;
			}
		}

		// Token: 0x170021D9 RID: 8665
		// (get) Token: 0x060077EB RID: 30699 RVA: 0x00140683 File Offset: 0x0013E883
		// (set) Token: 0x060077EC RID: 30700 RVA: 0x0014068B File Offset: 0x0013E88B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x170021DA RID: 8666
		// (get) Token: 0x060077ED RID: 30701 RVA: 0x00140694 File Offset: 0x0013E894
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MemberInfo> MemberInfo
		{
			get
			{
				return this.memberInfo_;
			}
		}

		// Token: 0x170021DB RID: 8667
		// (get) Token: 0x060077EE RID: 30702 RVA: 0x0014069C File Offset: 0x0013E89C
		// (set) Token: 0x060077EF RID: 30703 RVA: 0x001406A4 File Offset: 0x0013E8A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060077F0 RID: 30704 RVA: 0x001406AD File Offset: 0x0013E8AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyGetInfoScRsp);
		}

		// Token: 0x060077F1 RID: 30705 RVA: 0x001406BC File Offset: 0x0013E8BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyGetInfoScRsp other)
		{
			return other != null && (other == this || (this.FightGameMode == other.FightGameMode && this.AGFNBILMNFC == other.AGFNBILMNFC && this.RoomId == other.RoomId && this.memberInfo_.Equals(other.memberInfo_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060077F2 RID: 30706 RVA: 0x0014073C File Offset: 0x0013E93C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FightGameMode != FightGameMode.None)
			{
				num ^= this.FightGameMode.GetHashCode();
			}
			if (this.AGFNBILMNFC != 0UL)
			{
				num ^= this.AGFNBILMNFC.GetHashCode();
			}
			if (this.RoomId != 0UL)
			{
				num ^= this.RoomId.GetHashCode();
			}
			num ^= this.memberInfo_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060077F3 RID: 30707 RVA: 0x001407DA File Offset: 0x0013E9DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060077F4 RID: 30708 RVA: 0x001407E2 File Offset: 0x0013E9E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060077F5 RID: 30709 RVA: 0x001407EC File Offset: 0x0013E9EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.RoomId != 0UL)
			{
				output.WriteRawTag(24);
				output.WriteUInt64(this.RoomId);
			}
			if (this.AGFNBILMNFC != 0UL)
			{
				output.WriteRawTag(40);
				output.WriteUInt64(this.AGFNBILMNFC);
			}
			if (this.FightGameMode != FightGameMode.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.FightGameMode);
			}
			this.memberInfo_.WriteTo(ref output, LobbyGetInfoScRsp._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060077F6 RID: 30710 RVA: 0x00140890 File Offset: 0x0013EA90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FightGameMode != FightGameMode.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FightGameMode);
			}
			if (this.AGFNBILMNFC != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.AGFNBILMNFC);
			}
			if (this.RoomId != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.RoomId);
			}
			num += this.memberInfo_.CalculateSize(LobbyGetInfoScRsp._repeated_memberInfo_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060077F7 RID: 30711 RVA: 0x0014092C File Offset: 0x0013EB2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyGetInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FightGameMode != FightGameMode.None)
			{
				this.FightGameMode = other.FightGameMode;
			}
			if (other.AGFNBILMNFC != 0UL)
			{
				this.AGFNBILMNFC = other.AGFNBILMNFC;
			}
			if (other.RoomId != 0UL)
			{
				this.RoomId = other.RoomId;
			}
			this.memberInfo_.Add(other.memberInfo_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060077F8 RID: 30712 RVA: 0x001409B5 File Offset: 0x0013EBB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060077F9 RID: 30713 RVA: 0x001409C0 File Offset: 0x0013EBC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.RoomId = input.ReadUInt64();
						continue;
					}
				}
				else
				{
					if (num == 40U)
					{
						this.AGFNBILMNFC = input.ReadUInt64();
						continue;
					}
					if (num == 56U)
					{
						this.FightGameMode = (FightGameMode)input.ReadEnum();
						continue;
					}
					if (num == 98U)
					{
						this.memberInfo_.AddEntriesFrom(ref input, LobbyGetInfoScRsp._repeated_memberInfo_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002DDF RID: 11743
		private static readonly MessageParser<LobbyGetInfoScRsp> _parser = new MessageParser<LobbyGetInfoScRsp>(() => new LobbyGetInfoScRsp());

		// Token: 0x04002DE0 RID: 11744
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002DE1 RID: 11745
		public const int FightGameModeFieldNumber = 7;

		// Token: 0x04002DE2 RID: 11746
		private FightGameMode fightGameMode_;

		// Token: 0x04002DE3 RID: 11747
		public const int AGFNBILMNFCFieldNumber = 5;

		// Token: 0x04002DE4 RID: 11748
		private ulong aGFNBILMNFC_;

		// Token: 0x04002DE5 RID: 11749
		public const int RoomIdFieldNumber = 3;

		// Token: 0x04002DE6 RID: 11750
		private ulong roomId_;

		// Token: 0x04002DE7 RID: 11751
		public const int MemberInfoFieldNumber = 12;

		// Token: 0x04002DE8 RID: 11752
		private static readonly FieldCodec<MemberInfo> _repeated_memberInfo_codec = FieldCodec.ForMessage<MemberInfo>(98U, EggLink.DanhengServer.Proto.MemberInfo.Parser);

		// Token: 0x04002DE9 RID: 11753
		private readonly RepeatedField<MemberInfo> memberInfo_ = new RepeatedField<MemberInfo>();

		// Token: 0x04002DEA RID: 11754
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04002DEB RID: 11755
		private uint retcode_;
	}
}
